package com.sky.controller.admin;

import com.sky.result.Result;
import com.sky.service.ShopService;
import com.sky.service.impl.ShopServiceImpl;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/shop")
public class ShopController {
    @Autowired
    ShopService shopService;

    @GetMapping("/status")
    public Result<Integer> getStatus(){
        return shopService.getStatus();
    }

    @PutMapping ("/{status}")
    public Result setStatus(@PathVariable Integer status){
        return shopService.setStatus(status);
    }


}
